package com.hy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hy.entity.TeacherLike;

public interface TeacherLikeService extends IService<TeacherLike> {
    
    /**
     * 添加点赞
     */
    boolean addLike(TeacherLike teacherLike);
    
    /**
     * 取消点赞
     */
    boolean cancelLike(Integer id);
    
    /**
     * 检查是否已点赞
     */
    boolean isLiked(Integer userId, Integer teacherId);
    
    /**
     * 获取老师的点赞数
     */
    Long getTeacherLikeCount(Long teacherId);
} 